package com.soft.cake.mapper;

import java.util.List;

import com.soft.cake.pojo.Order;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    
    List<Order> selectAllOrderByUserId(int userId);//通过userID查询所有订单
    
    Order selectOrderByOrderId(int orderId);//通过orderID查询一个订单

    
    Order selOrderWithProListByOrderId(Integer orderId);
}